package com.cn.zmc.design.commend.controller;

import com.cn.zmc.design.commend.commend.OrderCommend;
import com.cn.zmc.design.commend.service.impl.CommendAServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("commend")
public class CommendController {

    @Resource
    private CommendAServiceImpl commendAService;


    @RequestMapping(value = "test")
    public String commend() {
        new OrderCommend(2, " 123456").execute(commendAService);
        return "ok";
    }
}
